<template>
  <div id="content-category">
    <div class="item" v-for="(item, index) in contentTop" :key="index">
<!--      <a :href="item.link">-->
        <img :src="item.image" alt="">
<!--      </a>-->
      <div class="text">{{item.title}}</div>
    </div>
  </div>
</template>

<script>
  export default {
   name: "ContentCategory",
    props:{
      contentTop:{
        type:Array,
        default(){
          return []
        }
      }
    },
  }
</script>

<style scoped>
  #content-category{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    text-align: center;
    padding: 8px 5px;
    font-size: 12px;
  }
  .item{
    width: 28%;
    margin-bottom: 12px;
  }
  .item img{
    width: 80%;
  }
  .item .text{
    margin: 8px 0;
  }
</style>